import { wechatrequest } from './API/request'
import { getGlobalData } from '../configuration/globaldata'

const url = getGlobalData('API_IM')

/**
 * 网易云IM聊天ID注册
 * */
export const createWYAccountRequest = wyAccountModel => {
  return wechatrequest.post(`${url}/im/wyAccount`, {
    data: wyAccountModel
  })
}

/**
 * 网易云IM用户信息更新
 * */
export const updateWYinfoRequest = wyAccountModel => {
  return wechatrequest.post(`${url}/im/wyUpdateUinfo`, {
    data: wyAccountModel
  })
}
